package com.jl.code.service.impl;


import com.jl.code.dao.UserDao;
import com.jl.code.entity.User;
import com.jl.code.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findAll() {

        List<User> users=userDao.findAllUser();

        System.out.println(users);

        return users;
    }
}
